﻿<%@ Page MasterPageFile="~/Site.Master" Language="C#" AutoEventWireup="true" CodeBehind="Encode.aspx.cs" Inherits="Omu.AwesomeWebFormsDemo.Encode" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:DropDownList runat="server" ID="jj" />
    
    <o:Lookup runat="server" ID="loko" GetUrl="~/svc/aja.svc/EncodeGet" SearchUrl='~/svc/aja.svc/EncodeSearch'
        Title="' <b>hi</b> & '<>>" OkText="oo<br/>'<hr/>" CancelText="' sd </hr>" />
        
    <o:MultiLookup runat="server" ID="Fruits" GetMultipleUrl="~/svc/aja.svc/EncodeGetMultiple"
        SearchUrl='~/svc/aja.svc/EncodeSearch' SelectedUrl="~/svc/aja.svc/EncodeSelected"
        Value='["1","2","3"]' Title="' <b>hi</b> & '<>>" OkText="oo<br/>'<hr/>" CancelText="' sd </hr>" />
    <o:AjaxDropdown runat="server" ID="Categories" Url="~/svc/aja.svc/EncodeDropdown">
    </o:AjaxDropdown>
    <o:AjaxRadioList runat="server" ID="CategoriesArl" Url="~/svc/aja.svc/EncodeDropdown"
        Value="3"></o:AjaxRadioList>
    <o:AjaxCheckboxList runat="server" ID="Cat1Acl" Url="~/svc/aja.svc/CategoriesEncode">
    </o:AjaxCheckboxList>
    <asp:TextBox runat="server" ID="Name"></asp:TextBox>
    <input type="button" id="bsearch" value="search" />

    <script type="text/javascript">
        function hi(o) {
            alert('hi the id is ' + o);
        }
    </script>

    <% 
        FruitsList.Buttons = new[]
                              {
                                  new AjaxListButton {Content = "hi", JsFunc = "hi"}
                              };
        FruitsList.Data = new Dictionary<string, string> { { "search", Name.ClientID } };
        FruitsList.SearchButton = "bsearch";
    %>
    <o:AjaxList runat="server" ID="FruitsList" SearchUrl='~/svc/aja.svc/EncodeSearch' />
</asp:Content>
